/*
 * Profile.java
 *
 * Created on 23 Январь 2010 г., 15:51
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.jimm.protocol;

import org.jimm.app.R;
import org.jimm.db.JimmDatabase.Accounts;

/**
 * @author Vladimir Krukov
 */
public final class Profile {

    /**
     * Creates a new instance of Profile
     */
    public Profile() {
    }

    public long accountId;
    public int protocolType;
    public String userId = "";
    public String password = "";
    public String nick = "";

    public int statusIndex = 1;
    public String statusMessage = "";
    //
//    public int xstatusIndex = -1;
//    public String xstatusTitle;
//    public String xstatusDescription;
    public boolean isActive;
    public boolean autoConnect;

    public int getIcon() {

        switch (protocolType) {
            case Accounts.PROTOCOL_ICQ:
                return R.drawable.icq_status_online;

            default:
                break;
        }
        return 0;
    }
}
